
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/user_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>客户管理</strong> &gt;&gt;  用户列表
		</div>
		<div class="admin_right_con" style="width: 98%">
			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC" width="100%">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>ID</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>用户名</strong></td>
				<!-- <td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>邮箱</strong></td> -->
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>真实姓名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>性别</strong></td>
				<!-- <td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>电话</strong></td> -->
				<!-- <td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>qq</strong></td> -->
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>籍贯</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>注册时间</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>操作</strong></td>
			  </tr>
			  <?php foreach($user_list as $info){?>
			  <tr>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['user_id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['username'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['realname'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php if($info['sex'] == '1'){echo '男';}elseif($info['sex']=='2'){echo '女';}?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['province'] ? $area_list[$info['province']]:'';?> <?php echo $info['city'] ? $area_list[$info['city']]:'';?> <?php echo $info['area'] ? $area_list[$info['area']]:'';?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo date('Y-m-d H:i',$info['add_time']);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF">
				<a href="/ychadmin/user/attlist/<?php echo $info['user_id'];?>">证明资料</a>
				<a href="/ychadmin/user/edit/<?php echo $info['user_id'];?>">修改</a>
				</td>
			  </tr>
			  <?php }?>
			  <tr>
			  	<td colspan="10" align="right" bgcolor="#FFFFFF">
			  		<form action="" method="get">
			  			用户名：<input type="text" id="username" name="username" value="<?php echo $parms['username'];?>" />
			  			用户类型：<select id="type_id" name="type_id">
			  			<option value="" <?php if(!isset($parms['type_id']) || !$parms['type_id']){echo 'selected="selected"';}?>>全部</option>
						<option value="2" <?php if(isset($parms['type_id']) && $parms['type_id']==2){echo 'selected="selected"';}?>>普通客户</option>
						<option value="3" <?php if(isset($parms['type_id']) && $parms['type_id']==3){echo 'selected="selected"';}?>>客服</option>
			  			</select>
			  			Email：<input type="text" id="email" name="email" value="<?php echo $parms['email'];?>" />
			  			真实姓名：<input type="text" id="realname" name="realname" value="<?php echo $parms['realname'];?>" />
			  			注册时间：<input type="text" id="add_time" name="add_time" style="width: 100px;" value="<?php echo $add_time;?>"  onfocus="WdatePicker()" />
			  			<input type="submit"/>
			  		</form>
			  	</td>
			  </tr>
			  <tr>
			  	<td  height="35" colspan="10" align="center" class="page" bgcolor="#FFFFFF"><?php echo $this->pagination->create_links();?></td>
			  </tr>
			</table>
			
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
</body>
</html>
